<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ page import="org.springframework.context.ApplicationContext" %>
<%@ page import="com.sz.common.ICommonDAO" %>
<%@ page import="com.sz.business.dao.IBusinessDAO"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String style1 = "width: 80;text-align:right;font-size: 12px;";
String style2 = "width: 120px";
String style3 = "color: red;text-align:left;";
String style4 = "font-size: 12px;";
String style6 = "width: 300px";
%>

<%
ServletContext servletContext = request.getSession().getServletContext(); 
ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(servletContext);


//区域
String tmp = null;
tmp = request.getParameter("region");
String region = (tmp!=null) ? tmp : "";
String create_manager = request.getSession().getAttribute("userid").toString();
String region_id = request.getSession().getAttribute("regionid").toString();
ICommonDAO dao = (ICommonDAO) context.getBean("CommonDAO");
String Region_sql = "select region_id,REGION_NAME from region where parent_id = " + region_id;
List list_Area = dao.queryForList(Region_sql);


//根据登陆区域查商圈
StringBuffer buf = new StringBuffer();
buf.delete(0, buf.length());
buf.append("select * from business_group t where t.region_id in (");
buf.append("select region_id from region start with region_id = ");
buf.append(region_id);
buf.append("connect by  parent_id = prior region_id)");
List list_business_group = dao.queryForList(buf.toString());

//菜系
String Course_Serial_Sql = "select serial_id,name from tck.course_serial";
List Course_Serial_Area = dao.queryForList(Course_Serial_Sql);
%>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
	<link href="<%= request.getContextPath() %>/css/main.css" rel="stylesheet" type="text/css" />		
		<base href="<%=basePath%>" target="_self">
		<title>新增商家信息</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="addTicket">
		<meta http-equiv="description" content="新增商家信息">
	</head>
	
	<body>
		<script type="text/javascript" src="js/calendar.js"></script>
		<script type="text/javascript" src="js/utility.js"></script>	
		
	  	<form name="addBusiness_form"  action="addBusiness.exec" method="post" onsubmit="return check()"> 
	  	
	  	<table width="100%" height="50px" border="0" cellpadding="0" cellspacing="0">
	  	<tr>
		  	<td class="title0">新增商家信息<br></td>
		</tr>
	  	</table>
	  	
	  	 <table width="100%" border="0" >
	  	 
	  	 
	  	<tr>
	  		<th colspan="6" align="left">基本信息</th>
	  	</tr>
  		<tr>
			<td style="<%=style1%>">行政区域<br></td>
	        <td>
		  		<select id="business_region_id" name="business_region_id" style="width:156px">
				  <option value="">请选择</option>
				   <%
				     boolean b = false;
				   	 String value = null;
				     String text = null;
				   %>
				   <%
				   for(int n = 0; n < list_Area.size(); ++n)
				   {    
					   Map map = (Map)list_Area.get(n);
					   value = map.get("REGION_ID").toString();
					   text = map.get("REGION_NAME").toString();
					   b = value.equals(region);
				   %>
				   <option <%if(b){%> selected="selected" <%}%>
				     value="<%=value%>"><%=text%>
				   </option>
				   <%}%>				   
				</select>
			    <font style="<%=style3%>">*</font>
		  	</td>  	
		  	<td style="<%=style1%>">商圈 &nbsp;<br></td>
		  	<td>
				<select id="business_group_id" name="business_group_id"> 
			  		<option value="">请选择</option> 
			  		<%

					 for(int i = 0; i < list_business_group.size(); ++i) {
						Map map = (Map)list_business_group.get(i);
						value = map.get("GROUP_ID").toString();
						text = map.get("NAME").toString();												
					 %>
					  <option value="<%=value%>"> 
					  <%=text%> 
					  </option>
					 <%} %> 
		  		</select>
		  		<font style="<%=style3%>">*</font>
		  	</td>
		    <td style="<%=style1%>">来源 &nbsp;<br></td>
		  	<td>
		  	  <select id="Business_InfoSource" name="Business_InfoSource" style="width:156px">
			  	  <option >请选择</option>
				  <option value="1">合作商</option>
				  <option value="2">普通商户</option>
			   </select>
	   		</td>	  		
	  	</tr>
	  	
  		<tr>
  			<td style="<%=style1%>">签约状态&nbsp</td>
  			<td>
		  	  <select id="Business_CheckStatus" name="Business_CheckStatus" style="width:156px">
			  	  <option >请选择</option>
				  <option value="1">已签约</option>
				  <option value="0">未签约</option>	   
			   </select>
			   <font style="<%=style3%>">*</font>
	   		</td>
	   		
  			<td style="<%=style1%>">营业状态&nbsp</td>
  			<td>
		  	  <select id="Business_WorkStatus" name="Business_WorkStatus" style="width:156px">
				  <option value="1">正常</option>
				  <option value="2">暂停营业</option>
				  <option value="0">关闭</option>		   
			   </select>
	   		</td>

  			
  			<td style="<%=style1%>">预定状态&nbsp</td>
  			<td>
		  	  <select id="Business_PreorderFlag" name="Business_PreorderFlag" style="width:156px">
			  	  <option >请选择</option>
				  <option value="1">可预定</option>
				  <option value="0">不可预定</option>	   
			   </select>
			   <font style="<%=style3%>">*</font>
	   		</td>  	
  		</tr>
  		
  		<tr>
			<td style="<%=style1%>">公布状态&nbsp</td>
			<td>
		  	  <select id="Business_PublishState" name="Business_PublishState" style="width:156px">
				  <option value="1">公布</option>
				  <option value="0">不公布</option>		   
			   </select>
	   		</td> 
	   		

			<td style="<%=style1%>">推荐状态&nbsp</td>
			<td>
		  	  <select id="Business_RedFlag" name="Business_RedFlag" style="width:156px">
			  	  <option >请选择</option>
				  <option value="0">黑名单</option>
				  <option value="1">红旗</option>
				  <option value="2">正常</option>
				  <option value="3">白旗</option>		   
			   </select>
			   <font style="<%=style3%>">*</font>
	   		</td>
	   		
			<td style="<%=style1%>">GPS&nbsp</td>
		  	<td>
		  		X<input type="text" id="Business_X" name="Business_X"  style="<%=style2%>">
				Y<input type="text" id="Business_Y" name="Business_Y"  style="<%=style2%>">
		  	</td> 	
	 	</tr>
	  	
	  	<tr>
  			<td style="<%=style1%>">商家名称&nbsp<br></td>
	  		<td>
	  			<input type="text" id="Business_Name" name="Business_Name"  style="<%=style2%>">
	  			<font style="<%=style3%>">*</font>
	  		</td>
  			<td style="<%=style1%>">英文名&nbsp</td>
  			<td>
  				<input type="text" id="Business_NameEnglish" name="Business_NameEnglish" style="<%=style2%>" >
  			</td>
  			<td style="<%=style1%>">别名/简称&nbsp</td>
  			<td>
  				<input  type="text" id="Business_Alias" name="Business_Alias" style="<%=style2%>" >
  			</td>  	
	  </tr>
	  
	  <tr>
  			<td style="<%=style1%>">注册名&nbsp</td>
  			<td>
  				<input type="text" id="Business_LoginName" name="Business_LoginName" style="<%=style2%>" >	
  				<font style="<%=style3%>">*</font>  
  			</td>
  			<td style="<%=style1%>">订餐电话&nbsp</td>
  			<td>
  				<input  type="text" id="Business_Tel1" name="Business_Tel1" style="<%=style2%>" >
  				<font style="<%=style3%>">*</font>
  			</td>
  			<td style="<%=style1%>">地址&nbsp</td>
  			<td>
  				<input  type="text" id="Business_Adress" name="Business_Adress" style="<%=style2%>" >
   				<font style="<%=style3%>">*</font>
  			</td>  	
	  </tr>
	
	  <tr>
			<td style="<%=style1%>">邮编&nbsp</td>
			<td>
				<input type="text" id="Business_PostCode" name="Business_PostCode"  style="<%=style2%>" >	   
			</td>
			<td style="<%=style1%>">交叉路口&nbsp</td>
			<td>
				<input  type="text" id="Business_CrossRoad" name="Business_CrossRoad"  style="<%=style2%>" >
			</td>
			<td style="<%=style1%>">地标&nbsp</td>
			<td>
				<input  type="text" id="Business_LandMark" name="Business_LandMark"  style="<%=style2%>" >
			</td>  	
	  </tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">缩略图&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_Photo" name="Business_Photo" value="图片暂无"  readonly="readonly" style="<%=style2%>" >	
	  			</td>
	  			<td style="<%=style1%>">交通路线&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_Traffic" name="Business_Traffic" style="<%=style2%>" >
	  			</td>
	  			<td style="<%=style1%>">企业介绍&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_Descript" name="Business_Descript" style="<%=style2%>" >

	  			</td>  	
	  		</tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">Email&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_Email" name="Business_Email" style="<%=style2%>" >  
	  			</td>
	  			<td style="<%=style1%>">网址&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_NetAddress" name="Business_NetAddress" style="<%=style2%>" >
	  			</td>
	  			<td style="<%=style1%>">传真&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_Fax" name="Business_Fax" style="<%=style2%>" >
	  			</td>  	
	  		</tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">负责人&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_MainUser" name="Business_MainUser" style="<%=style2%>" >
	  				<font style="<%=style3%>">*</font>	   
	  			</td>
	  			<td style="<%=style1%>">负责人电话&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_MainUser_Tel" name="Business_MainUser_Tel"  style="<%=style2%>" >
	  				<font style="<%=style3%>">*</font>
	  			</td>
	  		    <td style="<%=style1%>">商家编码&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_BusinessCode" name="Business_BusinessCode"  style="<%=style2%>" >
	  				<font style="<%=style3%>">*</font>
	  			</td> 
	  		</tr>	  	
	  	
	  	<tr>
	  		<th colspan="6" align="left">服务信息</th>
  			<tr>
  				<td style="<%=style1%>">经营菜系&nbsp</td>
		  	<td>
				<select id="course_serial_id" name="course_serial_id" style="width:156px"> 
			  		<option value="">请选择</option> 
			  		<%
					 for(int i = 0; i < Course_Serial_Area.size(); ++i) {
						Map map = (Map)Course_Serial_Area.get(i);
						value = map.get("SERIAL_ID").toString();
						text = map.get("NAME").toString();												
					 %>
					  <option value="<%=value%>"> 
					  <%=text%> 
					  </option>
					 <%} %> 
		  		</select>
		  		<font style="<%=style3%>">*</font>
  			<td style="<%=style1%>">招牌菜&nbsp</td>
  			<td>
  				<input  type="text" id="Business_SpecialCourse" name="Business_SpecialCourse" style="<%=style2%>" >
  			</td>
  			<td style="<%=style1%>">风味&nbsp</td>
  			<td>
  				<input  type="text" id="Business_Flavor" name="Business_Flavor"  style="<%=style2%>" >
  			</td>  	
	  		</tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">人均消费&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_AvgFee" name="Business_AvgFee" style="<%=style2%>" >	   
	  			</td>
	  			<td style="<%=style1%>">最低消费&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_LowFee" name="Business_LowFee" style="<%=style2%>" >
	  			</td>
	  			
	  			<td style="<%=style1%>">服务费&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_ServiceFee" name="Business_ServiceFee" style="<%=style2%>" >
	  			</td>  	
	  			
	  			
	  		</tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">包间&nbsp</td>	
	  			<td>		
		  			<select id="Business_RoomFlag" name="Business_RoomFlag" style="width:156px">
				  	  <option >请选择</option>
					  <option value="1">有包间</option>
					  <option value="0">无包间</option>		   
				   </select>
				   <font style="<%=style3%>">*</font>
			   </td>
	  			<td style="<%=style1%>">预定要求&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_PreorderDescrip" name="Business_PreorderDescrip" style="<%=style2%>" >
	  			</td>
	  			<td style="<%=style1%>">预定保留时间&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_Reserve" name="Business_Reserve" style="<%=style2%>" >
	  			</td>  	
	  		</tr>
	  			<td style="<%=style1%>">包间描述&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_RoomDescrip" name="Business_RoomDescrip" style="<%=style6%>" >
	  			</td>  
	  		<tr>
	  		
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">营业时间&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_WorkTime" name="Business_WorkTime" style="<%=style2%>" >	   
	  			</td>
	  			<td style="<%=style1%>">包间数&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_RoomNum" name="Business_RoomNum"  style="<%=style2%>" >
	  			</td>
	  			<td style="<%=style1%>">设施&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_Devices" name="Business_Devices" style="<%=style2%>" >
	  			</td>  	
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">是否接受信用卡&nbsp</td>
	  			<td>		
		  			<select id="Business_CreditCardFlag" name="Business_CreditCardFlag" style="width:156px">
				  	  <option >请选择</option>
					  <option value="1">接受</option>
					  <option value="0">不接受</option>	   
				   </select>
				   <font style="<%=style3%>">*</font>
			   </td>

	  			<td style="<%=style1%>">是否接受消费卡&nbsp</td>
	  			<td>		
		  			<select id="Business_CousumeCardFlag" name="Business_CousumeCardFlag" style="width:156px">
				  	  <option >请选择</option>
					  <option value="1">接受</option>
					  <option value="0">不接受</option>	   
				   </select>
				   <font style="<%=style3%>">*</font>
			   </td>
	  			
	  			<td style="<%=style1%>">卡类型说明&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_CardTypeInfo" name="Business_CardTypeInfo" style="<%=style2%>" >
	  			</td>  	
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">服务说明&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_ServiceDescrip" name="Business_ServiceDescrip" style="<%=style2%>" >	   
	  			</td>
	  			<td style="<%=style1%>">停车说明&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_ParkDescrip" name="Business_ParkDescrip" style="<%=style2%>" >
	  			</td>
	  			<td style="<%=style1%>">外卖说明&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_OutDescrip" name="Business_OutDescrip"  style="<%=style2%>" >
	  			</td>  	
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">营业面积&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_Area" name="Business_Area" style="<%=style2%>" >	   
	  			</td>
	  			<td style="<%=style1%>">环境&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_Environment" name="Business_Environment" style="<%=style2%>" >
	  			</td>	
	  			
	  		    <td style="<%=style1%>">折扣&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_Discount" name="Business_Discount" style="<%=style2%>" >
	  			</td>  
	  			
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">关键字&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_KeyWords" name="Business_KeyWords" style="<%=style2%>" >	   
	  			</td>
	  			<td style="<%=style1%>">备注&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_CommentText" name="Business_CommentText" style="<%=style2%>" >
	  			</td>
	  			<td style="<%=style1%>">订金说明&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_DepositDescrip" name="Business_DepositDescrip"  style="<%=style2%>" >
	  			</td>  	
	  		</tr>	
	  		
	  		
	
	  	<tr>
	  		<th colspan="6" align="left">核单信息</th>
	  	</tr>
 		 <tr>
 			<td style="<%=style1%>">核单模式&nbsp</td>
			<td>		
	  			<select id="Business_CheckOrderMode" name="Business_CheckOrderMode" style="width:156px">
			  	  <option >请选择</option>
				  <option value="1">已核单</option>
				  <option value="0">未核单</option>		   
			   </select>
			   <font style="<%=style3%>">*</font>
		   </td>
 			<td style="<%=style1%>">核单人&nbsp</td>
 			<td>
 				<input  type="text" id="Business_CheckContact" name="Business_CheckContact" style="<%=style2%>" >
 				 <font style="<%=style3%>">*</font>
 			</td>
 			<td style="<%=style1%>">核单人电话&nbsp</td>
 			<td>
 				<input  type="text" id="Business_CheckTel" name="Business_CheckTel"  style="<%=style2%>" >
 				 <font style="<%=style3%>">*</font>
 			</td>  	
 		</tr>
	  	<tr>
		  	<td style="<%=style1%>"></td>
		  	<td>
		  		<input type="submit" value="新增商家" style="width: 80px;height: 40px;">
		  	</td>
	  	</tr>	  		  		  	 
	 	
	  	</table>
	  	
	  	<br/> 
  	</form>
 	
  	
  	<SCRIPT LANGUAGE="JavaScript">
  			function check() 
  			{
  				var tmp;

  				
   			 	tmp = document.getElementById("business_region_id").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请选择行政区域");
  	  				return false;
  				} 
  				
  				tmp = document.getElementById("business_group_id").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请选择商圈");
  	  				return false;
  				} 		
  				
  				tmp = document.getElementById("Business_InfoSource").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请选择来源");
  	  				return false;
  				} 
  				
  				tmp = document.getElementById("Business_CheckStatus").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请选择签约状态");
  	  				return false;
  				}
  				tmp = document.getElementById("Business_PreorderFlag").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请选择预定状态");
  	  				return false;
  				}
  				
  				tmp = document.getElementById("Business_RedFlag").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请选择推荐状态");
  	  				return false;
  				}
  				
  				tmp = document.getElementById("Business_LoginName").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请选择注册名");
  	  				return false;
  				}
  				
  				tmp = document.getElementById("Business_Adress").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请选择地址");
  	  				return false;
  				}
  				
  				tmp = document.getElementById("Business_MainUser").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：负责人");
  	  				return false;
  				}
  				
  				tmp = document.getElementById("business_name").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请输入商家名称");
  	  				return false;
  				}
  				
  				//tmp = document.getElementById("business_tel1").value;
  				//if(IsInteger(tmp)==false) {
  	  			//	alert("基本信息：请输入正确的商家电话号码,可以包括()、- 字符");
  	  			//	return false;
  				//}
  				
  				
  				tmp = document.getElementById("course_serial_id").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("服务信息：请选择经营菜系");
  	  				return false;
  				}
  				
  				tmp = document.getElementById("Business_RoomFlag").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("服务信息：请选择包间");
  	  				return false;
  				}
  				
  				tmp = document.getElementById("Business_CreditCardFlag").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("服务信息：请选择信用卡是否接受");
  	  				return false;
  				}
  				
  				tmp = document.getElementById("Business_CousumeCardFlag").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("服务信息：请选择消费卡是否接受");
  	  				return false;
  				}
  				
  	  		    tmp = document.getElementById("Business_CheckOrderMode").value;
	  			if(IsEmpty(tmp)==true) {
	  	  			alert("核单信息：请选择核单模式");
	  	  			return false;
	  			}
	  			
	  			tmp = document.getElementById("Business_CheckContact").value;
	  			if(IsEmpty(tmp)==true) {
	  	  			alert("核单信息：请输入核单人");
	  	  			return false;
	  			}			
  				
  				tmp = document.getElementById("Business_CheckTel").value;
	  			if(IsInteger(tmp)==false) {
	  	  			alert("核单信息：请输入核单人电话");
	  	  			return false;
	  			}
  				
  				//数字检查//////////////////////////////////////////////////////////////////
  				tmp = document.getElementById("Business_X").value;
  				if(IsEmpty(tmp)==false)
  				{	  			
  					if(IsInteger(tmp)==false) 
  					{
	  	  			alert("请正确输入经度，只能为数字");
	  	  			return false;
	  				}
	  			}

	  			
  				tmp = document.getElementById("Business_Y").value;
  				if(IsEmpty(tmp)==false)
  				{
  					if(IsInteger(tmp)==false) {
	  	  			alert("请正确输入纬度，只能为数字");
	  	  			return false;
	  			    }
  				}
	  			
	  			
  				tmp = document.getElementById("Business_PostCode").value;
  				if(IsEmpty(tmp)==false)
  				{
  					if(IsInteger(tmp)==false) {
	  	  			alert("请正确输入邮编，只能为数字");
	  	  			return false;
	  				}
  				}
	
	  			
	  			tmp = document.getElementById("Business_MainUser_Tel").value;
	  			if(IsInteger(tmp)==false) {
	  	  			alert("请正确输入负责人电话，只能为数字");
	  	  			return false;
	  			}	
	  			
	  			tmp = document.getElementById("Business_BusinessCode").value;
	  			if(IsEmpty(tmp)==true) {
	  	  			alert("商家编码：用于订单流程中的首拼查询");
	  	  			return false;
	  			}
				
	  			//tmp = document.getElementById("Business_AvgFee").value;
	  			//if(IsEmpty(tmp)==false)
	  			//{
		  		//	if(IsInteger(tmp)==false) {
		  	  	//		alert("请正确输入平均消费，只能为数字");
		  	  	//		return false;
		  		//	}	
	  			//}
	  			
	  			//tmp = document.getElementById("Business_LowFee").value;
	  			//if(IsEmpty(tmp)==false)
	  			//{
		  		//	if(IsInteger(tmp)==false) {
		  	  	//		alert("请正确输入最低消费，只能为数字");
		  	  	//		return false;
		  		//	}	
	  			//}

  				
  			   // tmp = document.getElementById("Business_RoomNum").value;
  			   // if(IsEmpty(tmp)==false)
  			   //{
	  	  	   //	if(IsInteger(tmp)==false) {
		  	   //		alert("请正确输入包间数，只能为数字");
		  	   //			return false;
		  	   //		}				
  			   //	}

  				
  		        tmp = document.getElementById("Business_CheckTel").value;
	  			if(IsInteger(tmp)==false) {
	  	  			alert("请正确输入核单人电话，只能为数字");
	  	  			return false;
	  			}
                
  				
  				
  				
  			}
  	</SCRIPT>
	</body>
</html>
